package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class EmploymentQuestionnaireExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EmploymentQuestionnaireExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEmploymentidIsNull() {
            addCriterion("employmentId is null");
            return (Criteria) this;
        }

        public Criteria andEmploymentidIsNotNull() {
            addCriterion("employmentId is not null");
            return (Criteria) this;
        }

        public Criteria andEmploymentidEqualTo(Integer value) {
            addCriterion("employmentId =", value, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidNotEqualTo(Integer value) {
            addCriterion("employmentId <>", value, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidGreaterThan(Integer value) {
            addCriterion("employmentId >", value, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("employmentId >=", value, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidLessThan(Integer value) {
            addCriterion("employmentId <", value, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidLessThanOrEqualTo(Integer value) {
            addCriterion("employmentId <=", value, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidIn(List<Integer> values) {
            addCriterion("employmentId in", values, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidNotIn(List<Integer> values) {
            addCriterion("employmentId not in", values, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidBetween(Integer value1, Integer value2) {
            addCriterion("employmentId between", value1, value2, "employmentid");
            return (Criteria) this;
        }

        public Criteria andEmploymentidNotBetween(Integer value1, Integer value2) {
            addCriterion("employmentId not between", value1, value2, "employmentid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidIsNull() {
            addCriterion("questionnaireId is null");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidIsNotNull() {
            addCriterion("questionnaireId is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidEqualTo(Integer value) {
            addCriterion("questionnaireId =", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidNotEqualTo(Integer value) {
            addCriterion("questionnaireId <>", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidGreaterThan(Integer value) {
            addCriterion("questionnaireId >", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidGreaterThanOrEqualTo(Integer value) {
            addCriterion("questionnaireId >=", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidLessThan(Integer value) {
            addCriterion("questionnaireId <", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidLessThanOrEqualTo(Integer value) {
            addCriterion("questionnaireId <=", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidIn(List<Integer> values) {
            addCriterion("questionnaireId in", values, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidNotIn(List<Integer> values) {
            addCriterion("questionnaireId not in", values, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidBetween(Integer value1, Integer value2) {
            addCriterion("questionnaireId between", value1, value2, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidNotBetween(Integer value1, Integer value2) {
            addCriterion("questionnaireId not between", value1, value2, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlIsNull() {
            addCriterion("questionnaireURL is null");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlIsNotNull() {
            addCriterion("questionnaireURL is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlEqualTo(String value) {
            addCriterion("questionnaireURL =", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlNotEqualTo(String value) {
            addCriterion("questionnaireURL <>", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlGreaterThan(String value) {
            addCriterion("questionnaireURL >", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlGreaterThanOrEqualTo(String value) {
            addCriterion("questionnaireURL >=", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlLessThan(String value) {
            addCriterion("questionnaireURL <", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlLessThanOrEqualTo(String value) {
            addCriterion("questionnaireURL <=", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlLike(String value) {
            addCriterion("questionnaireURL like", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlNotLike(String value) {
            addCriterion("questionnaireURL not like", value, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlIn(List<String> values) {
            addCriterion("questionnaireURL in", values, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlNotIn(List<String> values) {
            addCriterion("questionnaireURL not in", values, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlBetween(String value1, String value2) {
            addCriterion("questionnaireURL between", value1, value2, "questionnaireurl");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireurlNotBetween(String value1, String value2) {
            addCriterion("questionnaireURL not between", value1, value2, "questionnaireurl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}